<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html><html lang="en">
	<head>
		<!--加载header文件-->
		<?php
		include_once 'public/views/header.php';
		?>
		<link rel="stylesheet" href="public/css/list.css" />
		<link rel="stylesheet" href="public/xr/xrDatatable.css" />
		<script src="public/xr/xrDatatable.js?v=20231124"></script>
		<script src="public/js/list.js"></script>
		<script src="cust/js/statisticsTable5.js"></script>
	</head>
	<body>
		<input type="hidden" id="zjipc_auth_url" value="<?php echo ZJIPC_AUTH_URL ?>">
		<input type="hidden" id="zjipc_app_id" value="<?php echo ZJIPC_APP_ID ?>">
		<div class="page-container container">
			<div class="searchForm">
			    <div class="searchForm-title"><i class="icon-table searchForm-title-icon"></i>数据表格<i class="icon-double-angle-up searchFormTitleIcon"></i></div>
			    <div class="searchForm-main">
					<form id="searchForm">
							<input type="text" name='param' id="param" placeholder="巡查人员/单位" value="<?php echo $dept_name; ?>" />							
							<input type="hidden" name='start_time' id="start_time" placeholder="开始时间" value="<?php echo $start_time; ?>" />							
							<input type="hidden" name='end_time' id="end_time" placeholder="结束时间" value="<?php echo $end_time; ?>" />							
							<!-- <select name="admin_type" id="admin_type">
								<option value="-1">巡查部门</option>
								<?php foreach ($dept_list as $k => $v): ?>
									<option value="<?php echo $v['dept_id']; ?>"><?php echo $v['dept_name']; ?></option>
								<?php endforeach; ?>
							</select> -->
					</form>
				</div>
			</div>			
			<div class="listcontent">
				<div class='xrTableRow'>
					<table id="table" class="xrTable">
						<thead>
							<tr>
								<th name="_xrno"></th>
								<th name="_oper" style="width: 120px;">操作</th>
								<th name="_teacher_dept_name" > 巡查部门 </th>								
								<th name="_username" > 巡查人员</th>
								<th name="_unit_name" > 单位名称</th>
								<th name="_unit_contact" > 单位联系人</th>
								<th name="_unit_phone" > 单位电话</th>
								<th name="_sub_time" > 巡检时间</th>
								<th name="_created" > 添加时间</th>
							</tr>
						</thead>
					</table>
				</div>
			</div>
		</div>
	</body>
	<script>
		$("body").keydown(function() {
             if (event.keyCode == "13") {//keyCode=13是回车键
                 $('.searchButton').click();
             }
         });
		$("#role").change(function(){
			$('.searchButton').click();
		});
		$("#admin_type").change(function(){
			$('.searchButton').click();
		});
	</script>
</html>